class Account(object):
    def __init__(self, **account):
        self.username = account['username']
        self.password = account['password']
        self.s = account['s']
        self.gsid = account['gsid']
        self.cid = account['cid']  # crawler id

        self.count = 0


class Timeline(object):
    def __init__(self, **timeline):
        self.mid = timeline['mid']
        self.encrypted_mid = timeline['encrypted_mid']
        self.uid = timeline['uid']
        self.screen_name = timeline['screen_name']
        self.text = timeline['text']
        self.app_source = timeline['app_source']
        self.created_at = timeline['created_at']
        self.attitudes = timeline['attitudes']
        self.comments = timeline['comments']
        self.reposts = timeline['reposts']
        self.pic_urls = timeline['pic_urls']
        self.json = timeline['json']
        self.timestamp = timeline['timestamp']

        self.omid = timeline['omid']


class Keyword(object):
    def __init__(self, **keyword):
        self.keyword = keyword['keyword']
        self.cid = keyword['cid']
        self.score = keyword['score']
        self.timestamp = keyword['timestamp']


class Followee(object):
    def __init__(self, **followee):
        self.uid = followee['uid']
        self.seed_uid = followee['seed_uid']
        self.avatar = followee['avatar']
        self.followers_count = followee['followers_count']
        self.friends_count = followee['friends_count']
        self.screen_name = followee['screen_name']
        self.verified = followee['verified']
        self.vip_level = followee['vip_level']
        self.description = followee['description']
        self.json = followee['json']
        self.timestamp = followee['timestamp']


class Follower(object):
    def __init__(self, **follower):
        self.uid = follower['uid']
        self.seed_uid = follower['seed_uid']
        self.avatar = follower['avatar']
        self.followers_count = follower['followers_count']
        self.friends_count = follower['friends_count']
        self.screen_name = follower['screen_name']
        self.verified = follower['verified']
        self.vip_level = follower['vip_level']
        self.description = follower['description']
        self.json = follower['json']
        self.timestamp = follower['timestamp']


class Seed(object):
    def __init__(self, **seed):
        self.uid = seed['uid']
        self.cid = seed['cid']
        self.is_checked = seed['is_checked']
        self.checked_time = seed['checked_time']